package com.ruoyi.reviews.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户评价对象 user_reviews
 * 
 * @author ruoyi
 * @date 2024-07-08
 */
public class UserReviews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long reviewId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 用户评分 */
    @Excel(name = "用户评分")
    private Long userRating;

    /** 用户评论 */
    @Excel(name = "用户评论")
    private String userComment;

    public void setReviewId(Long reviewId) 
    {
        this.reviewId = reviewId;
    }

    public Long getReviewId() 
    {
        return reviewId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setUserRating(Long userRating) 
    {
        this.userRating = userRating;
    }

    public Long getUserRating() 
    {
        return userRating;
    }
    public void setUserComment(String userComment) 
    {
        this.userComment = userComment;
    }

    public String getUserComment() 
    {
        return userComment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("reviewId", getReviewId())
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("productId", getProductId())
            .append("userRating", getUserRating())
            .append("userComment", getUserComment())
            .toString();
    }
}
